﻿<controls:ChildWindow x:Class="Outcoder.Services.Implementation.TextResponseWindowOld"
                x:Name="textResponseWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
                mc:Ignorable="d"
                Title="{Binding Caption}"
                FontFamily="{StaticResource PhoneFontFamilyNormal}"
                FontSize="{StaticResource PhoneFontSizeNormal}"
                Foreground="{StaticResource PhoneForegroundBrush}"
                Height="300"
                Width="400"
                OverlayBrush="#7F000000"
                BorderBrush="Black"
                BorderThickness="0"
                HasCloseButton="False"
                Template="{StaticResource MessageDialog}">

    <Grid x:Name="LayoutRoot" 
          Background="{StaticResource PhoneChromeBrush}">

        <TextBlock Text="{Binding Question}"
               TextWrapping="Wrap" Style="{StaticResource NormalTextStyle}"/>
        <TextBox Text="{Binding Response, ElementName=textResponseWindow, Mode=TwoWay}" 
                 Height="80" />
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">

            <Button Content="{Binding Resources.Instance.Dialog_Cancel, 
                                                Source={StaticResource BindableResources}}"
                x:Name="button_Cancel"
                VerticalAlignment="Bottom"
                d:LayoutOverrides="Width"
                HorizontalAlignment="Right" />

            <Button Content="{Binding Resources.Instance.Dialog_Ok, 
                                                Source={StaticResource BindableResources}}"
                x:Name="button_Close"
                VerticalAlignment="Bottom"
                d:LayoutOverrides="Width"
                HorizontalAlignment="Right" />

        </StackPanel>
    </Grid>
</controls:ChildWindow>
